home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 42
/
Freelog042.iso
/
Bas
/
Jeux
/
BallBreaker
/
BallBreaker[1].swf
/
scripts
/
frame_36
/
DoAction.as
Wrap
Text File
|
2003-01-12
|
2KB
|
52 lines
VecteurX = random("2");
if(VecteurX == "0")
{
VecteurX = "-10";
}
else
{
VecteurX = "10";
}
VecteurY = "-10";
setProperty("/balle", _X, getProperty("/raket", _X) - "5");
setProperty("/balle", _Y, "365");
PowerUp = "0";
if(getProperty("/raket", _X) - LongueurRaket < getProperty("/PowerTaille", _X) and getProperty("/PowerTaille", _X) < getProperty("/raket", _X) + LongueurRaket and getProperty("/raket", _Y) - "10" < getProperty("/PowerTaille", _Y) and getProperty("/PowerTaille", _Y) < getProperty("/raket", _Y) + "10" and getProperty("/PowerTaille", _visible) == "1")
{
setProperty("/PowerTaille", _visible, "0");
setProperty("/PowerTaille", _Y, "-20");
setProperty("/raket", _xscale, getProperty("/raket", _xscale) * "2");
LongueurRaket *= "2";
stopDrag();
startDrag("/raket","1","75","380","375","380");
Colle = "0";
gotoAndPlay(38);
}
else if("500" < getProperty("/PowerTaille", _Y))
{
setProperty("/PowerTaille", _visible, "0");
setProperty("/PowerTaille", _Y, "-20");
Taille = "0";
}
else if(getProperty("/PowerTaille", _visible) == "1")
{
setProperty("/PowerTaille", _Y, getProperty("/PowerTaille", _Y) + "10");
}
PowerScoreCpt = "1";
while("5" >= PowerScoreCpt)
{
PowerScoreNumero = "PowerScore_" add PowerScoreCpt;
if(getProperty(PowerScoreNumero, _visible) == "1")
{
if(getProperty(PowerScoreNumero, _Y) < "400")
{
setProperty(PowerScoreNumero, _Y, getProperty(PowerScoreNumero, _Y) + "10");
}
else
{
setProperty(PowerScoreNumero, _visible, "0");
}
}
PowerScoreCpt += "1";
}